package com.ele.pojo;

import java.util.Date;

public class Shop {
	private Integer id;
	private String shopName;
	private String password;
	private String addr;
	private String shopDesc;
	private Double startPrice;
	private Double fee;
	private Integer shopStatus;
	private Date registTime;
	
	public Date getRegistTime() {
		return registTime;
	}
	public void setRegistTime(Date date) {
		this.registTime = date;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public String getShopDesc() {
		return shopDesc;
	}
	public void setShopDesc(String shopDesc) {
		this.shopDesc = shopDesc;
	}
	public Double getStartPrice() {
		return startPrice;
	}
	public void setStartPrice(Double startPrice) {
		this.startPrice = startPrice;
	}
	public Double getFee() {
		return fee;
	}
	public void setFee(Double fee) {
		this.fee = fee;
	}
	public Integer getShopStatus() {
		return shopStatus;
	}
	public void setShopStatus(Integer shopStatus) {
		this.shopStatus = shopStatus;
	}
	private String status() {
		if(shopStatus == 0) {
			return "休业";
		}else if (shopStatus == 1) {
			return "营业中";
		}else {
			return "停业";
		}
	}
	
	@Override
	public String toString() {
		return "商店编号：" + id + "\n商店名：" + shopName + "\n密码：" + password + "\n地址：" + addr + "\n商店描述："
				+ shopDesc + "\n配送起步：" + startPrice + "\n配送费：" + fee + "\n商店状态：" + status() ;
	}
	
}
